package com.dragon.modules.yuegou.model.marketing;

import com.dragon.modules.yuegou.entity.marketing.HomeActivityEntity;
import com.dragon.modules.yuegou.enums.marketing.HomeActivityActivityChannel;
import com.dragon.modules.yuegou.enums.marketing.HomeActivityActivityType;
import com.dragon.modules.yuegou.enums.marketing.HomeActivityStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 首页弹框活动表模型类
 * 
 * @author pbuilder generated
 * @date 2019-08-29 09:51:57
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class HomeActivity extends HomeActivityEntity {

	@ApiModelProperty("商品名称")
	private String spuTitle;

	private String brand;

	public String getSpuTitle() {
		return spuTitle;
	}

	public void setSpuTitle(String spuTitle) {
		this.spuTitle = spuTitle;
	}

	/**
	 * 构造一个空首页弹框活动表模型对象
	 */
	public HomeActivity(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个首页弹框活动表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public HomeActivity(HomeActivityEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个首页弹框活动表模型对象
	 * 
	 * @param other 其它对象
	 */
	public HomeActivity(HomeActivity other){
		super(other);
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getBrand() {
		return brand;
	}

	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public HomeActivity id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public HomeActivity busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getActivityName() {
    	return activityName;
    }

    /**
	 * 设置
	 * 
	 * @param activityName 
	 * @return 当前对象
	 */
    public HomeActivity activityName(String activityName) {
    	this.activityName = activityName;
    	return this;
    }

	@Override
	public HomeActivityActivityType getActivityType() {
    	return activityType;
    }

    /**
	 * 设置[枚举]活动类型：0-商品推荐-PRODUCT、1-专题活动-ACTIVITY
	 * 
	 * @param activityType [枚举]活动类型：0-商品推荐-PRODUCT、1-专题活动-ACTIVITY
	 * @return 当前对象
	 */
    public HomeActivity activityType(HomeActivityActivityType activityType) {
    	this.activityType = activityType;
    	return this;
    }

	@Override
	public HomeActivityStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-待开始-WAITING、1-进行中-DOING、2-禁用-FORBIDDEN、3-已过期-EXPIRED
	 * 
	 * @param status [枚举]状态：0-待开始-WAITING、1-进行中-DOING、2-禁用-FORBIDDEN、3-已过期-EXPIRED
	 * @return 当前对象
	 */
    public HomeActivity status(HomeActivityStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public LocalDateTime getStartTime() {
    	return startTime;
    }

    /**
	 * 设置开始时间
	 * 
	 * @param startTime 开始时间
	 * @return 当前对象
	 */
    public HomeActivity startTime(LocalDateTime startTime) {
    	this.startTime = startTime;
    	return this;
    }

	@Override
	public LocalDateTime getEndTime() {
    	return endTime;
    }

    /**
	 * 设置结束时间
	 * 
	 * @param endTime 结束时间
	 * @return 当前对象
	 */
    public HomeActivity endTime(LocalDateTime endTime) {
    	this.endTime = endTime;
    	return this;
    }

	@Override
	public LocalDateTime getForbidTime() {
    	return forbidTime;
    }

    /**
	 * 设置禁用时间
	 * 
	 * @param forbidTime 禁用时间
	 * @return 当前对象
	 */
    public HomeActivity forbidTime(LocalDateTime forbidTime) {
    	this.forbidTime = forbidTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public HomeActivity createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public HomeActivity createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public HomeActivity modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public HomeActivity modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Integer getTimeInterval() {
    	return timeInterval;
    }

    /**
	 * 设置
	 * 
	 * @param timeInterval 
	 * @return 当前对象
	 */
    public HomeActivity timeInterval(Integer timeInterval) {
    	this.timeInterval = timeInterval;
    	return this;
    }

	@Override
	public String getImg() {
    	return img;
    }

    /**
	 * 设置
	 * 
	 * @param img 
	 * @return 当前对象
	 */
    public HomeActivity img(String img) {
    	this.img = img;
    	return this;
    }

	@Override
	public String getUrl() {
    	return url;
    }

    /**
	 * 设置链接地址
	 * 
	 * @param url 链接地址
	 * @return 当前对象
	 */
    public HomeActivity url(String url) {
    	this.url = url;
    	return this;
    }

	@Override
	public String getSpuId() {
    	return spuId;
    }

    /**
	 * 设置商品spuId
	 * 
	 * @param spuId 商品spuId
	 * @return 当前对象
	 */
    public HomeActivity spuId(String spuId) {
    	this.spuId = spuId;
    	return this;
    }

	@Override
	public HomeActivityActivityChannel getActivityChannel() {
    	return activityChannel;
    }

    /**
	 * 设置[枚举]活动渠道：0-全部-ALL、1-小程序-MINIAPP、2-APP-APP
	 * 
	 * @param activityChannel [枚举]活动渠道：0-全部-ALL、1-小程序-MINIAPP、2-APP-APP
	 * @return 当前对象
	 */
    public HomeActivity activityChannel(HomeActivityActivityChannel activityChannel) {
    	this.activityChannel = activityChannel;
    	return this;
    }
}
